package cn.fengshenghospital.service.impl;

import cn.fengshenghospital.entity.User;
import cn.fengshenghospital.mapper.UserMapper;
import cn.fengshenghospital.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImplUserService implements UserService {
    @Autowired
    private UserMapper userMapper;
    //获取指定用户
    @Override
    public User login(String userCode) throws Exception {
        return userMapper.getUser(userCode);
    }
}
